package com.goldfish666.remote_control.template;

import com.goldfish666.remote_control.dto.common.CommandDTO;
import com.goldfish666.remote_control.entity.common.Button;
import com.tuyang.beanutils.annotation.BeanCopySource;
import com.tuyang.beanutils.annotation.CopyCollection;

import java.util.List;

@BeanCopySource(source = Button.class)
public class ButtonEntity2DTO {

    @CopyCollection(targetClass = CommandDTO.class, optionClass = CommandEntity2DTO.class)
    private List<CommandDTO> commands;

}
